package com.littlec.sdk.entity;

public class CMMember {
	private String memberId;
	private String memberNick;
	public static final String MEMBERID = "memberId";
	public static final String MEMBERNICK = "memberNick";

	public CMMember(String memberId) {
		this.memberId = memberId;
	}

	public CMMember(String memberId, String memberNick) {
		this.memberId = memberId;
		this.memberNick = memberNick;
	}

	public String getMemberId() {
		return this.memberId;
	}

	public String getMemberNick() {
		return this.memberNick;
	}

	public int hashCode() {
		int prime = 31;
		int result = 1;
		result = 31 * result
				+ (this.memberId == null ? 0 : this.memberId.hashCode());
		return result;
	}

	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CMMember other = (CMMember) obj;
		if (this.memberId == null) {
			if (other.memberId != null)
				return false;
		} else if (!this.memberId.equals(other.memberId))
			return false;
		return true;
	}
}
